<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta name="decorator" content="moduleList" />
</head>
<body>
		<form:form id="brandStyleForm" modelAttribute="brandStyle" method="post" class="form-inline" role="form">
			<div class="o-l-action">
				<div class="form-group">
			      <form:input id="styleName" path="styleName" maxlength="20" class="form-control" placeholder="风格名称"/>
			    </div>
				<button type="submit" class="btn btn-primary">查询</button>
				<button class="btn btn-danger btn-sm pull-right" onclick="Oosp_DelAll('${contextPath}/biz/brand/style/deleteAll','table1')">删除</button>
				<a class="btn btn-success btn-sm pull-right" role="button" href="${contextPath}/biz/brand/style/add">新建</a>
			</div>
    	</form:form>
		<tags:message content="${message}"/>
		<table class="table table-striped table-hover o-l-table" id="table1">
			<thead>
				<tr>
					<th style="width: 1px"><input type="checkbox" data-ckb="all"></th>
					<th>风格名称</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${brandStyleList}" var="brandStyle">
					<tr  data-herf="${contextPath}/biz/brand/style/${brandStyle.id}/view" data-target="_self">
						<td class="o-l-tab-ckb">
							<input type="checkbox" data-ckb-id="${brandStyle.id}">
						</td>
						<td>${brandStyle.styleName}</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
		<div class="o-l-page">
			<div class="col-sm-6">
				<ul class="pagination">
					<li class="disabled"><a href="javascript:">&#171; 上一页</a></li>
					<li class="disabled"><a href="#">1</a></li>
					<li class="disabled"><a href="#">下一页 &#187;</a></li>
				</ul>
			</div>
			<div class="col-sm-6">
				<span class="pull-right">
					到第<input class="form-control input-sm input-goto" type="text">页
					<button class="btn btn-sm btn-primary" role="button">go</button>
				</span>
			</div>
		</div>
<script type="text/javascript" src="${staticPath}/js/list.js"></script>
</body>
</html>